package com.ruoyi.my.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.my.mapper.CfUserImageMapper;
import com.ruoyi.my.domain.CfUserImage;
import com.ruoyi.my.service.ICfUserImageService;

/**
 * 用户历史照片Service业务层处理
 * 
 * @author shenshen
 * @date 2024-06-05
 */
@Service
public class CfUserImageServiceImpl implements ICfUserImageService 
{
    @Autowired
    private CfUserImageMapper cfUserImageMapper;

    /**
     * 查询用户历史照片
     * 
     * @param userImageId 用户历史照片主键
     * @return 用户历史照片
     */
    @Override
    public CfUserImage selectCfUserImageByUserImageId(Long userImageId)
    {
        return cfUserImageMapper.selectCfUserImageByUserImageId(userImageId);
    }

    /**
     * 查询用户历史照片列表
     * 
     * @param cfUserImage 用户历史照片
     * @return 用户历史照片
     */
    @Override
    public List<CfUserImage> selectCfUserImageList(CfUserImage cfUserImage)
    {
        return cfUserImageMapper.selectCfUserImageList(cfUserImage);
    }

    /**
     * 新增用户历史照片
     * 
     * @param cfUserImage 用户历史照片
     * @return 结果
     */
    @Override
    public int insertCfUserImage(CfUserImage cfUserImage)
    {
        return cfUserImageMapper.insertCfUserImage(cfUserImage);
    }

    /**
     * 修改用户历史照片
     * 
     * @param cfUserImage 用户历史照片
     * @return 结果
     */
    @Override
    public int updateCfUserImage(CfUserImage cfUserImage)
    {
        return cfUserImageMapper.updateCfUserImage(cfUserImage);
    }

    /**
     * 批量删除用户历史照片
     * 
     * @param userImageIds 需要删除的用户历史照片主键
     * @return 结果
     */
    @Override
    public int deleteCfUserImageByUserImageIds(Long[] userImageIds)
    {
        return cfUserImageMapper.deleteCfUserImageByUserImageIds(userImageIds);
    }

    /**
     * 删除用户历史照片信息
     * 
     * @param userImageId 用户历史照片主键
     * @return 结果
     */
    @Override
    public int deleteCfUserImageByUserImageId(Long userImageId)
    {
        return cfUserImageMapper.deleteCfUserImageByUserImageId(userImageId);
    }
}
